<?php
class TestController extends Controller{
    
    public function actionSendmail(){
        $sender = 'noreply@avance-th.com';
        $fromname = 'avance-th';
        $subject = 'test av';
        $body = 'test body';
        $receiver = 'moo_audaud@hotmail.com';
        if(GM::sendEMail($sender, $fromname, $subject, $body, $receiver)){
            echo 'OK';
        }else{
            echo 'failed';
        }
    }
    
    public function actionGenUniq(){
        $your_user_login = 'Moo';
        echo md5(uniqid($your_user_login, true));
        echo "<br>";
        echo uniqid($your_user_login, true);
    }
}

?>
